#eps32c3 super mini
led1=2
leda=1
key1=0
ledoff=1
ledon=0
scl=8
sda=9
voltageSwitch=7
dcdcSwitch=5
voltagePin=4
def getvolt(buf):
    buf.sort()
    l_=int(len(buf)/4)
    buf=buf[l_:len(buf)-l_]
    buf=sum(buf)/len(buf)
    return buf*4.88/4096
